package com.software.sqlite.entity;

import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;

@Data
@Table(name = "tb_movie")
public class TbMovie extends BaseEntity{

    @Column(name = "movieId")
    private Long movieId;

    @Column(name = "amount")
    private BigDecimal amount;

    @Column(name = "displayName")
    private String displayName;

    @Column(name = "score")
    private String score;

    @Column(name = "posterLocalImg")
    private String posterLocalImg;

    @Column(name = "shortPinYin")
    private String shortPinYin;

    @Column(name = "shotDesc")
    private String shotDesc;

    @Column(name = "person")
    private String person;

    @Column(name = "duration")
    private String duration;

    @Column(name = "producePlace")
    private String producePlace;

    @Column(name = "description")
    private String description;

    @Column(name = "director")
    private String director;

    @Column(name = "movieType")
    private String movieType;

    @Column(name = "remark")
    private String remark;

    @Column(name = "fileName")
    private String fileName;

    @Column(name = "extName")
    private String extName;

    @Column(name = "mainName")
    private String mainName;

    @Column(name = "filePath")
    private String filePath;

    @Column(name = "movieImg")
    private String movieImg;

    /**
     * 观看时间点（s）
     */
    @Transient
    private String initialTime="0";

    @Transient
    private Integer billCount=0;

    @Transient
    private Integer collectCount=0;

    @Transient
    private Integer likeCount=0;

    @Transient
    private Integer myCollect=0;

    @Transient
    private Integer myLike=0;

    @Transient
    private boolean isNeedLogin;

    /**
     * 影视图片base64数据
     */
    @Transient
    private String movieImgBase64;

}
